//
//  ShopToolView.h
//  danpin
//
//  Created by chuangjia on 22/10/2015.
//  Copyright © 2015 chuangjia. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "BottomToolBar.h"

typedef enum
{
    ShopToolEventType_unknow,
    ShopToolEventType_back,
    ShopToolEventType_refresh,
    ShopToolEventType_buy,
    ShopToolEventType_add,
    ShopToolEventType_del,
}ShopToolEventType;
@interface ShopToolView : BottomToolBar
{
    
}
@property(assign,nonatomic) BOOL enableQtySelect;

@property(nonatomic,strong)UIButton *buyBtn;
@property(nonatomic,strong)NSString *priceStr;
@property(nonatomic,strong)NSString *fareStr;
@property(nonatomic,strong)NSString *taxStr;
@property(nonatomic,strong)NSString *qtyStr;
@property(nonatomic,strong)NSString *numViewCount;

@property(nonatomic,strong) void(^actionBlock)(ShopToolEventType,UIView *,id,id);

-(void)setCallBack:(void(^)(ShopToolEventType,UIView*,id,id))callback;

-(void)setNumViewCount:(NSString *)numViewCount maxQty:(int)nMaxQty;

- (void) EnableBuyButton:(BOOL) yesNo;
-(void)setAlertStr:(NSString *)alertStr;

-(void)setQtyStr:(NSString *)qtyStr price:(NSString*)priceStr;

@end
